package com.kylin.shared.common.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import java.io.Serializable;

/**
 * 分页请求基本参数
 * @author Damon S.
 */
@Data
@ApiModel(value = "分页请求基本参数")
public class PageableReq implements Serializable {

    @Min(value = 1, message = "index必须大于等于1")
    @ApiModelProperty(value = "页码")
    private Long index;

    @Min(value = 5, message = "limit必须大于等于5")
    @ApiModelProperty(value = "每页行数")
    private Long limit;
}
